package com.atguigu.jenkins.springbootjeninks.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Title: <br>
 * Description: <br>
 *
 * @author zhengtaotao
 * @version 2.0
 * @Date 2024-04-04
 */
@RestController
@RequestMapping()
//@RequestMapping(value = "/admin/detail")
public class JenkinsTest {
    @GetMapping("/send1/{name}")
    public String sendString1(@PathVariable(value = "name") String name){
        return "你好啊" + name;
    }
    @GetMapping("/send2/{name}")
    public String sendString2(@PathVariable(value = "name") String name){
        StringBuilder sb = new StringBuilder(name);
        String reversed = sb.reverse().toString();
        return "反转后的结果为：" + reversed;
    }
}
